<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>json</title>
		<script>
			/**var driver={name:"老张",age:34,sex:"女",married:true,
			address:{country:"中国",city:"合肥",qu:"包河区",street:"屯溪路193号"},
			intro:function(){alert(this.name+","+this.age+"岁，结婚了？"+this.married);}};//对象
			 driver.intro();
			 
			 driver.address.street="屯溪路195号";
			 alert("居住在："+driver.address.street);
			 **/
			 var drivers=[
			 {name:"小吴",age:31,sex:"男",wife:{name:"翠兰"},introSelf:function(){alert(this.name+","+this.age+","+this.wife.name);}}
			 ,{name:"老张",age:22,sex:"男",wife:[{name:"潘巧云"},{name:"西门翠雪"}],introSelf:function(){alert(this.name+","+this.age+","+this.wife);}}
			 ,{name:"老刘",age:32,sex:"男",introSelf:function(){alert(this.name+","+this.age+","+this.wife);}}];
			 for(var i=0;i<drivers.length;i++)
			 {
			 	drivers[i].introSelf();
			 }
		</script>
	</head>
	<body>
	</body>
</html>
